package com.ganzi.ganziserver.dao;

import com.ganzi.ganziserver.core.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {

    public User findUserById(long id) throws Exception;
    public User findUserByName(@Param("name") String name) throws Exception;
    public void insertUser(User user) throws Exception;
    public void deleteUser(long id) throws Exception;
    public void updateUser(User user) throws Exception;
    public List<Long> findSchoolByUserId(long id);
    public List<User> findAllUser();
    public void lockUser(@Param("id")long id,@Param("lock")int lock);
}
